package com.aliang.shopping.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 商品属性表
 * @TableName goods_properties
 */
@TableName(value ="goods_properties")
@Data
public class GoodsProperties implements Serializable {
    /**
     * 数据Id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 属性名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 属性值
     */
    @TableField(value = "value")
    private String value;

    /**
     * 商品Id
     */
    @TableField(value = "goods_id")
    private Long goodsId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}